package day020;

import java.io.FileWriter;
import java.io.IOException;

public class FileWriteDemo1 {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter("D:\\day020\\output.txt");
        char[] chs = {'a', 'b', 'c', 'd', 'e'};
        fw.write(chs, 2, 3);
        fw.write("\r\n");

        fw.write("abcdef");
        fw.write("\r\n");

        fw.write("abcdef", 2, 3);

        fw.close();
    }
}
